package com.cdsf.kennedy.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * @Author: kennedy
 * @Date: Created in 17:12 2018/3/12
 */
@RestController
public class HelloController {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @RequestMapping("/hello")
    public String index() {
        try {
            TimeUnit.SECONDS.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "Hello World";
    }
}
